//Copyright(c)[2025][AGIROS][TravoDDS] is licensed under Mulan PSL v2.
//
//You can use this software according to the terms and conditions of
//the Mulan PSL v2.You may obtain a copy of Mulan PSL v2 at :
//http://license.coscl.org.cn/MulanPSL2
//
//THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF
//ANY KIND, EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO
//NON-INFRINGEMENT, MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE.
//
//See the Mulan PSL v2 for more details.
#ifndef AGIDDS_DCPS_CONDITION_QUERYCONDITIONIMPL_H
#define AGIDDS_DCPS_CONDITION_QUERYCONDITIONIMPL_H

#include "dcps/condition/readconditionimpl.h"
#include "dcps/condition/querycondition.h"
#include "dcps/base/retcode.h"

AGIDDS_NAMESPACE_BEGIN

class QueryConditionImpl : public virtual QueryCondition, public  ReadConditionImpl {
public:
	QueryConditionImpl(SampleStateMask smapleStates, ViewStateMask viewStates, InstanceStateMask instanceStates, const std::string& queryExpression, StringSeq queryParameters, DataReaderImpl* dataReader);

	virtual const std::string& get_query_expression() const;

	virtual ReturnCode_t get_query_parameters(StringSeq& query_parameters) const;

	virtual ReturnCode_t set_query_parameters(const StringSeq& query_parameters);
private:
    std::string queryExpression_;
    StringSeq queryParameters_;
};

AGIDDS_NAMESPACE_END
#endif // !AGIDDS_DCPS_CONDITION_QUERYCONDITIONIMPL_H
